You are here: System operations > High availability > Configuring a highly available environment > Migrating auto-generated rules

Migrating auto-generated rules

Some Pega Platform applications have auto-generated rules. These rules are created at runtime during the normal use of a production system.

Note: Auto-generated rules are not present in the upgraded rule base from the time of the initial rule migration and must be migrated manually.

There is a built-in utility to export the auto-generated rules created after a certain time period. Use the prpcUtils.properties utility, located in the coreBuildDistributionImage/scripts/utils directory, to perform the export.

To run the prpcUtils.properties utility, do the following:

  1. Create an XML file containing the following classes to export:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ExportClassList>
    <Database dbname="PegaRULES">
    <Class name="Rule-Obj-Property" column="PXUPDATEDATETIME"/>
    <Class name="Rule-Obj-When" column="PXUPDATEDATETIME"/>
    <Class name="Rule-Obj-FlowAction" column="PXUPDATEDATETIME"/>
    </Database>
    </ExportClassList>

  2. Enter the database connection information in the utility by setting the following properties under its Settings for Export Tool section:
  3. Run the prpcUtils.bat file in the same directory as the properties file with the following syntax:
    C:\coreBuildDistributionImage\scripts\utils>prpcUtils.bat export